package com.yjck.fm.spend.dao.handler;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.yjck.fm.spend.bean.SpendType;

public class SpendTypeRowMapper implements RowMapper {

	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		SpendType spendType = new SpendType();
		spendType.setId(rs.getString("id"));
		spendType.setName(rs.getString("spendname"));
		spendType.setCreatby(rs.getString("uname"));
		spendType.setTime(rs.getString("createdate"));
		return spendType;
	}

}
